package com.ruoyi.mall.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 规格参数对象 t_specifications
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class Specifications extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格ID */
    private Long specId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String specName;

    private List<ProductSpecValues> specValuesList;

    public void setSpecId(Long specId) 
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }

    public List<ProductSpecValues> getSpecValuesList() {
        return specValuesList;
    }

    public void setSpecValuesList(List<ProductSpecValues> specValuesList) {
        this.specValuesList = specValuesList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("specId", getSpecId())
            .append("goodsId", getGoodsId())
            .append("specName", getSpecName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
